package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;

import java.util.List;

public interface PermissionService {
    //增
    public void addPermission(Permission permission);

    //删
    public void deletePermissionById(Integer id);

    //改
    public void editPermissionByCondition(Permission permission);

    //根据条件查询
    public Permission findByCondition(Permission permission);

    //分页查询
    public PageResult pageQuery(QueryPageBean queryPageBean);

    //查询所有
    public List<Permission> findAll();
}
